package com.my.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.my.annotation.SystemOperatorLog;
import com.my.dao.LogMapperExt;
import com.my.entity.Log;
import com.my.service.LogService;

@Service
public class LogServiceImpl implements LogService {
	private static final Logger logger = LoggerFactory.getLogger(LogServiceImpl.class);

	@Resource
	private LogMapperExt logMapperExt;
	
	@Override
	public int deleteByPrimaryKey(Long id) {
		return logMapperExt.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Log record) {
		return logMapperExt.insertSelective(record);
	}
	@Override
	public Log selectByPrimaryKey(Long id) {
		return logMapperExt.selectByPrimaryKey(id);
	}
	
	
	@Override
	public int updateByPrimaryKey(Log record) {
		return logMapperExt.updateByPrimaryKey(record);
	}

	@Override
	public List<Log> selectAllRightLog() {
		return logMapperExt.selectAllRightLog();
	}

	@Override
	public List<Log> selectAllErrorLop() {
		return logMapperExt.selectAllErrorLop();
	}


}
